﻿using Core.Domain.Seo;
using System.Data.Entity.ModelConfiguration;

namespace Data.Mapping.Seo
{
    public partial class FriendlyLinkMap : EntityTypeConfiguration<FriendlyLink>
    {
        public FriendlyLinkMap()
        {
            this.ToTable("FriendlyLink");
            this.HasKey(lp => lp.Id);

            this.Property(lp => lp.Name).IsRequired().HasMaxLength(100);
            this.Property(lp => lp.Url).IsRequired().HasMaxLength(400);
        }
    }
}
